/**
 * 基本键值对对象，value可以为空，但是必须要和key的位置队友
 * @param key
 * @param value
 */
function BaseEntity(key, value) {
    this.key = key;
    this.value = value;
}

/**
 * 问答实体
 * @param id
 * @param keyWords
 * @param question
 * @param guideKeyWords
 * @param url
 * @param actived
 * @constructor
 */
function Question(id, keyWords, question, guideKeyWords, url,url1,url2,voice,voice1,voice2,photos,name,name2,name3,actived) {
    this.id = id;
    this.keyWords = keyWords;
    this.question = question;
    this.created = "";
    this.guideKeyWords = guideKeyWords;
    this.updated = "";
    this.url = url;
    this.url1 = url1;
    this.url2 = url2;
    this.voice = voice;
    this.voice1 = voice1;
    this.voice2 = voice2;
    this.name = name;
    this.name2 = name2;
    this.name3 = name3;
    this.photos = photos;
    this.actived = actived;
}
/**
 * 欢迎语实体
 * @param id
 * @param keyWords
 * @param question
 * @param guideKeyWords
 * @param url
 * @param actived
 * @constructor
 */
function Greeting(id, greeting) {
    this.id = id;
    this.created = "";
    this.updated = "";
    this.greeting = greeting;
}
/**
 * 欢迎未匹配
 * @param id
 * @param keyWords
 * @param question
 * @param guideKeyWords
 * @param url
 * @param actived
 * @constructor
 */
function Unanswered(id, unanswered) {
    this.id = id;
    this.created = "";
    this.updated = "";
    this.unanswered = unanswered;
}
/**
 * 问卷实体
 * @param questionnaireId
 * @param description
 * @constructor
 */
function Questionnaire(questionnaireId, description) {
    this.questionnaireId = questionnaireId;
    this.actived = "";
    this.created = "";
    this.updated = "";
    this.description = description;
}

/**
 * 问题实体
 * @param questionId
 * @param title
 * @param questionnaireId
 * @param type
 * @param serial
 * @param options
 * @constructor
 */
function Topic(questionId, title, questionnaireId, type, serial, options) {
    this.questionId = questionId;
    this.title = title;
    this.questionnaireId = questionnaireId;
    this.type = type;
    this.created = "";
    this.updatted = "";
    this.actived = "";
    this.serial = serial;
    this.options = options;
}

/**
 * 问题选项实体
 * @param optionId
 * @param title
 * @param content
 * @param questionId
 * @param serial
 * @constructor
 */
function Options(optionId, title, content, questionId, serial) {
    this.optionId = optionId;
    this.title = title;
    this.content = content;
    this.questionId = questionId;
    this.created = "";
    this.updated = "";
    this.actived = "";
    this.serial = serial;
}

/**
 * 答案实体
 * @param content
 * @param optionId
 * @constructor
 */
function Answer(content, optionId) {
    this.content = content;
    this.optionId = optionId;
}

/**
 * 接收服务器返回的token并封装
 * @param userId
 * @param token
 */
function LoginInfo(userId, token) {
    this.userId = userId;
    this.token = token;
}